var _EsdDynamicTransformationFunction = function($){
/**
* 命名空间定义
*/
var _EsdDynamicTransformationScript = {};
_EsdDynamicTransformationScript.navBlock = {}; // 定义区域跳转类
_EsdDynamicTransformationScript.navBlock.selector = {};
/**
* 文本链接 a
*/
//保证所有a标签都有href
$("a").each(function(){

var aHref = this.href;
if( aHref=="" || aHref==undefined ){
$(this).attr("href","javascript:void(0)");
}

//给a标签加title
var aTitle = this.title;
var aText = this.text;

if( aTitle=="" || aTitle==undefined ){
if( aText!="" || aText!=undefined ){
$(this).attr("title",$.trim(aText));
}
}

});

//select下的option添加title
$("option").each(function(){
var oTitle = this.title;
var oText = this.text;
if( oTitle=="" || oTitle==undefined ){
if( oText!="" || oText!=undefined ){
$(this).attr("title",$.trim(oText));
}
}
});


//为目录页的翻页添加title
if( $(".CurrChnlCls").length > 0 ){
$(' #num').attr({'title':'页数', 'placeholder':'页数'});
$('.zt10 .zt12').attr({'title':'跳转按钮', 'placeholder':'跳转按钮'});
}
/**
* 图片处理片段
*/

$('img[src="./rfts/rffc/201407/W020190222401972432621.png"]').attr('title','人防知识夏令营活动').attr('alt','人防知识夏令营活动');$('img[src="./kzgn/syzbgg/201902/W020190221559613143361.jpg"]').attr('title','学习贯彻十九大精神 开启人防建设新征程').attr('alt','学习贯彻十九大精神 开启人防建设新征程');$('img[src="./images/logo_main_rfb2019.jpg"]').attr('title','电子信箱').attr('alt','电子信箱');$('img[src="./rfts/rffc/201902/W020190403316361869102.png"]').attr('title','人防重要经济目标防护性演练——架设卫星便携站').attr('alt','人防重要经济目标防护性演练——架设卫星便携站');$('img[src="./rfts/rffc/201902/W020190403316355228406.png"]').attr('title','人防重要经济目标防护指挥部研究性演练').attr('alt','人防重要经济目标防护指挥部研究性演练');$('img[src="./rfts/rffc/201407/W020190222401977055690.png"]').attr('title','吉林省人防办创新思路，指导企业研制玄武岩新型防护密闭门').attr('alt','吉林省人防办创新思路，指导企业研制玄武岩新型防护密闭门');$('img[src="./zwxx/tpxw/201909/W020190920337812870013.jpg"]').attr('title','吉林省人防馆揭牌开馆').attr('alt','吉林省人防馆揭牌开馆');$('img[src="./rfts/rffc/201407/W020190222401961088482.jpg"]').attr('title','人防指挥知识培训').attr('alt','人防指挥知识培训');$('img[src="./rfts/rffc/201407/W020190222401966308097.png"]').attr('title','学习习近平总书记重要指示精神_争做黄大年式共产党员演讲比赛').attr('alt','学习习近平总书记重要指示精神_争做黄大年式共产党员演讲比赛');$('img[src="./images/logo_rfb2019.png"]').attr('title','吉林省人民防空办公室').attr('alt','吉林省人民防空办公室');$('img[src="//dcs.conac.cn/image/red.png"]').attr('title','党政机关').attr('alt','党政机关');$('img[src="./zwxx/tpxw/201907/W020190726387340000542.jpg"]').attr('title','吉林省惠企惠民政策手册').attr('alt','吉林省惠企惠民政策手册');$('img[src="./ztzl/xysbdrfdqh/images/P020190320343636249388.jpg"]').attr('title','人防党风廉政建设与机关党建专栏').attr('alt','人防党风廉政建设与机关党建专栏');$('img[src="./rfts/rffc/201407/W020190222401954644664.jpg"]').attr('title','人防机动指挥所').attr('alt','人防机动指挥所');$('img[src="./rfts/rffc/201902/W020190403316357526474.png"]').attr('title','人防重要经济目标防护性演练——信息处理车布线').attr('alt','人防重要经济目标防护性演练——信息处理车布线');$('img[src="./rfts/rffc/201407/W020190222401975186093.png"]').attr('title','省人防办主任王涌慧检查省机动指挥所拉动演练').attr('alt','省人防办主任王涌慧检查省机动指挥所拉动演练');$('img[src="./images/icon_ba_20180129.png"]').attr('title','吉公网安备').attr('alt','吉公网安备');$('img[src="./zwxx/tpxw/201902/W020190403316351801839.jpg"]').attr('title','省人防办检查红旗地下商城安全生产工作').attr('alt','省人防办检查红旗地下商城安全生产工作');$('img[src="./zwxx/tpxw/201911/W020191126315143681406.jpg"]').attr('title','省人防办赴长春理工大学调研').attr('alt','省人防办赴长春理工大学调研');$('img[src="./rfts/rffc/201407/W020190222401969385613.png"]').attr('title','省人防办副主任徐玉成检查省人防机动指挥所开设演练').attr('alt','省人防办副主任徐玉成检查省人防机动指挥所开设演练');$('img[src="./rfts/rffc/201902/W020190403316359659676.png"]').attr('title','人防重要经济目标防护性演练——无人机').attr('alt','人防重要经济目标防护性演练——无人机');$('img[src="./kzgn/syzbgg/201902/W020190221559417795019.jpg"]').attr('title','战时防空 平时服务 应急支援').attr('alt','战时防空 平时服务 应急支援');$('img[src="./zwxx/tpxw/201911/W020191126310565373072.jpg"]').attr('title','省纪委副书记、省监委副主任王云桥到省人防办某工程调研').attr('alt','省纪委副书记、省监委副主任王云桥到省人防办某工程调研');

//img
$("img").each(function(){
//给图片加alt/title
var imgAlt = this.alt,
imgTitle = this.title,
imgSrc = this.src,
parentText = this.parentElement.text;

if(this.alt=="" || this.alt==undefined){
if(imgTitle!="" && imgTitle!=undefined){
$(this).attr("alt",imgTitle);
}else if(parentText!="" && parentText!=undefined){
$(this).attr("alt",parentText);
}
}
if(this.title=="" || this.title==undefined){
if(imgAlt!="" && imgAlt!=undefined){
$(this).attr("title",imgAlt);
}else if(parentText!="" && parentText!=undefined){
$(this).attr("title",parentText);
}
}
})

$("img").each(function(){
if( (this.alt=="" && this.title=="")||(this.alt==undefined && this.title==undefined) ){
$(this).attr("title","图片");
$(this).attr("alt","图片");
}
})
/**
* 共通头部
*/

//定义跳转 使用jquery选择器语法	此部分选择器  其中main,left,right和content在各个页面的if判断语句中重写了
_EsdDynamicTransformationScript.navBlock.selector.top=".contents";
_EsdDynamicTransformationScript.navBlock.selector.nav=".contents .index_Carouselnew";
_EsdDynamicTransformationScript.navBlock.selector.footer=".footer";


//当前url
_EsdDynamicTransformationScript.currentUrl = window.location.href;
//当前站点的主页判断
_EsdDynamicTransformationScript.isSiteIndexPage = (_EsdDynamicTransformationScript.currentUrl == 'http://jlrf.jl.gov.cn' || _EsdDynamicTransformationScript.currentUrl == 'http://jlrf.jl.gov.cn/' || _EsdDynamicTransformationScript.currentUrl == 'http://jlrf.jl.gov.cn/#' || _EsdDynamicTransformationScript.currentUrl == 'http://jlrf.jl.gov.cn/index.html')?true:false;

//***************	网站上部/导航栏等公共部分 begin	***************	//
// input type为text,password类型的输入框处理
// 预先定义几个常用的input title值
_EsdDynamicTransformationScript.placeholderKeyword='请输入搜索关键字';
_EsdDynamicTransformationScript.placeholderUsername='用户名';
_EsdDynamicTransformationScript.placeholderPassword='密码';
_EsdDynamicTransformationScript.placeholderSpecialText1='您对全省城市管理效能提升工作有何意见或建议';
_EsdDynamicTransformationScript.placeholderBtnSearch='提交查询按钮';
_EsdDynamicTransformationScript.placeholderBtnLogin='登陆按钮';
_EsdDynamicTransformationScript.placeholderBtnRegister='注册按钮';
// 搜索框 对象
_EsdDynamicTransformationScript.inputObject = $('#keyword');
$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderKeyword, 'placeholder':_EsdDynamicTransformationScript.placeholderKeyword});
// 用户名 对象
_EsdDynamicTransformationScript.inputObject = $('input[name="username"]');
$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderUsername, 'placeholder':_EsdDynamicTransformationScript.placeholderUsername});
// 密码 对象
_EsdDynamicTransformationScript.inputObject = $('input[name="password"]');
$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderPassword, 'placeholder':_EsdDynamicTransformationScript.placeholderPassword});
// 顶部提交按钮 对象
_EsdDynamicTransformationScript.inputObject = $('#button');
$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderBtnSearch});

// 登陆按钮 对象
_EsdDynamicTransformationScript.inputObject = $('input[name="log_in"]');
$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderBtnLogin});
// 注册按钮 对象
_EsdDynamicTransformationScript.inputObject = $('input[name="button"]');
$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderBtnRegister});


//***************	网站上部/导航栏等公共部分 end	***************	//
/**
* 主导航
*/
/**
* 网站主页轮播图
*
*/
// ***************	网站首页 begin	***************	//
if(_EsdDynamicTransformationScript.isSiteIndexPage){
// 0. 幻灯片
/*	轮播,右下角原点--鼠标点击触发情况
轮播：只获取轮播中一个a标签。
以文字a标签为主，图片a标签尽量不要，title不稳定
*/
//轮播前的标签
_EsdDynamicTransformationScript.esdTagFrontNum1 = $(".contents .index_Carouselnew .index_nav a:last");

//文字A标签
_EsdDynamicTransformationScript.esdTagANum1 = $("#D1pic1 .fcon:eq(0) .shadow a");
_EsdDynamicTransformationScript.esdTagANum2 = $("#D1pic1 .fcon:eq(1) .shadow a");
_EsdDynamicTransformationScript.esdTagANum3 = $("#D1pic1 .fcon:eq(2) .shadow a");
_EsdDynamicTransformationScript.esdTagANum4 = $("#D1pic1 .fcon:eq(3) .shadow a");
_EsdDynamicTransformationScript.esdTagANum5 = $("#D1pic1 .fcon:eq(4) .shadow a");

//原点
_EsdDynamicTransformationScript.esdTagCircleNum1 = $("#D1fBt a:eq(0) i");
_EsdDynamicTransformationScript.esdTagCircleNum2 = $("#D1fBt a:eq(1) i");
_EsdDynamicTransformationScript.esdTagCircleNum3 = $("#D1fBt a:eq(2) i");
_EsdDynamicTransformationScript.esdTagCircleNum4 = $("#D1fBt a:eq(3) i");
_EsdDynamicTransformationScript.esdTagCircleNum5 = $("#D1fBt a:eq(4) i");

//轮播后的标签
_EsdDynamicTransformationScript.esdTagAfterNum1 = $(".slideTxtBox .hd ul li:eq(0) a");

// 轮播图 轮播前的焦点
_EsdDynamicTransformationScript.esdTagFrontNum1.focus(function (e) {
$(this).bind("keydown.keydown_rotation_0", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum1.click();
_EsdDynamicTransformationScript.esdTagANum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagFrontNum1.blur(function(){
$(this).unbind("keydown.keydown_rotation_0");
});

// 轮播图 第1个tab
_EsdDynamicTransformationScript.esdTagANum1.focus(function (e) {
$(this).bind("keydown.keydown_rotation_1", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagFrontNum1.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum2.click();
_EsdDynamicTransformationScript.esdTagANum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagANum1.blur(function(){
$(this).unbind("keydown.keydown_rotation_1");
});

// 轮播图 第2个tab
_EsdDynamicTransformationScript.esdTagANum2.focus(function (e) {
$(this).bind("keydown.keydown_rotation_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum1.click();
_EsdDynamicTransformationScript.esdTagANum1.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum3.click();
_EsdDynamicTransformationScript.esdTagANum3.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagANum2.blur(function(){
$(this).unbind("keydown.keydown_rotation_2");
});

// 轮播图 第3个tab
_EsdDynamicTransformationScript.esdTagANum3.focus(function (e) {
$(this).bind("keydown.keydown_rotation_3", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum2.click();
_EsdDynamicTransformationScript.esdTagANum2.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum4.click();
_EsdDynamicTransformationScript.esdTagANum4.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagANum3.blur(function(){
$(this).unbind("keydown.keydown_rotation_3");
});

// 轮播图 第4个tab
_EsdDynamicTransformationScript.esdTagANum4.focus(function (e) {
$(this).bind("keydown.keydown_rotation_4", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum3.click();
_EsdDynamicTransformationScript.esdTagANum3.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum5.click();
_EsdDynamicTransformationScript.esdTagANum5.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagANum4.blur(function(){
$(this).unbind("keydown.keydown_rotation_4");
});

// 轮播图 第5个tab
_EsdDynamicTransformationScript.esdTagANum5.focus(function (e) {
$(this).bind("keydown.keydown_rotation_5", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum4.click();
_EsdDynamicTransformationScript.esdTagANum4.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagANum5.blur(function(){
$(this).unbind("keydown.keydown_rotation_5");
});

// 轮播图 轮播后的焦点
//	_EsdDynamicTransformationScript.esdTagAfterNum1.focus(function (e) {
//		$(this).bind("keydown.keydown_rotation_6", function (e) {
//			if(e.shiftKey&&e.keyCode==9){
//				_EsdDynamicTransformationScript.esdTagCircleNum5.click();
//				_EsdDynamicTransformationScript.esdTagANum5.focus();
//				$(this).unbind("keydown.keydown_rotation_6");
//				return false;
//			}else if (e.keyCode == 9) {
////				$(this).unbind("keydown.keydown_rotation_6");
//			}
//		});
//
//	});

}
//***************	网站首页 end	***************	//
/**
* 主页js
*/
// ***************	网站首页 begin	***************	//
if(_EsdDynamicTransformationScript.isSiteIndexPage){

$(".sele_wzdh:eq(0)").attr("title","省政府各部门网站");
$(".sele_wzdh:eq(1)").attr("title","国家、省人（民）防网站");
$(".sele_wzdh:eq(2)").attr("title","省内人防网站");

//第一部分  省级人防动态/地区人防动态
//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num1 = $(".slideTxtBox1 .bd ul:eq(0) a").length-1;
_EsdDynamicTransformationScript.num2 = $(".slideTxtBox1 .bd ul:eq(1) a").length-1;

//各个选项名称
_EsdDynamicTransformationScript.esd1TagNum1 = $(".slideTxtBox1 .hd ul li:eq(0) a");
_EsdDynamicTransformationScript.esd1TagNum2 = $(".slideTxtBox1 .hd ul li:eq(1) a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd1TagNum1Content1 = $(".slideTxtBox1 .bd ul:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd1TagNum2Content1 = $(".slideTxtBox1 .bd ul:eq(1) a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd1TagNum1ContentN = $(".slideTxtBox1 .bd ul:eq(0) a:eq("+_EsdDynamicTransformationScript.num1+")");
_EsdDynamicTransformationScript.esd1TagNum2ContentN = $(".slideTxtBox1 .bd ul:eq(1) a:eq("+ _EsdDynamicTransformationScript.num2+")");

//第1个tab 省级人防动态
_EsdDynamicTransformationScript.esd1TagNum1.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_sjrf_dqrf_1", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum5.click();
_EsdDynamicTransformationScript.esdTagANum5.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum1Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagNum1.blur(function () {
$(this).unbind("keydown.keydown_sjrf_dqrf_1");
});

_EsdDynamicTransformationScript.esd1TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown_sjrf_dqrf_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum1.focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esd1TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown_sjrf_dqrf_s1");
});

_EsdDynamicTransformationScript.esd1TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown_sjrf_dqrf_e1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown_sjrf_dqrf_e1");
});

//第2个tab 地区人防动态
_EsdDynamicTransformationScript.esd1TagNum2.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_sjrf_dqrf_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd1TagNum1.mouseover();
_EsdDynamicTransformationScript.esd1TagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum2Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd1TagNum2.blur(function () {
$(this).unbind("keydown.keydown_sjrf_dqrf_2");
});

_EsdDynamicTransformationScript.esd1TagNum2Content1.focus(function () {
$(this).bind("keydown.keydown_sjrf_dqrf_s2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum2.focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esd1TagNum2Content1.blur(function () {
$(this).unbind("keydown.keydown_sjrf_dqrf_s2");
});

//第二部分  公示公告/时事要闻

//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num3 = $(".slideTxtBox3:eq(0) .bd ul:eq(0) a").length-1;
_EsdDynamicTransformationScript.num4 = $(".slideTxtBox3:eq(0) .bd ul:eq(1) a").length-1;

//各个选项名称
_EsdDynamicTransformationScript.esd2TagNum1 = $(".slideTxtBox3:eq(0) .hd ul li:eq(0) a");
_EsdDynamicTransformationScript.esd2TagNum2 = $(".slideTxtBox3:eq(0) .hd ul li:eq(1) a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd2TagNum1Content1 = $(".slideTxtBox3:eq(0) .bd ul:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd2TagNum2Content1 = $(".slideTxtBox3:eq(0) .bd ul:eq(1) a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd2TagNum1ContentN = $(".slideTxtBox3:eq(0) .bd ul:eq(0) a:eq("+_EsdDynamicTransformationScript.num3+")");
_EsdDynamicTransformationScript.esd2TagNum2ContentN = $(".slideTxtBox3:eq(0) .bd ul:eq(1) a:eq("+_EsdDynamicTransformationScript.num4+")");

//第1个tab 公式公告
_EsdDynamicTransformationScript.esd2TagNum1.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_gsgg_rsyw_1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum1Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd2TagNum1.blur(function () {
$(this).unbind("keydown.keydown_gsgg_rsyw_1");
});

_EsdDynamicTransformationScript.esd2TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown_gsgg_rsyw_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum1.focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esd2TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown_gsgg_rsyw_s1");
});

_EsdDynamicTransformationScript.esd2TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown_gsgg_rsyw_e1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd2TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown_gsgg_rsyw_e1");
});

//第2个tab 时事要闻
_EsdDynamicTransformationScript.esd2TagNum2.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_gsgg_rsyw_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd2TagNum1.mouseover();
_EsdDynamicTransformationScript.esd2TagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum2Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd2TagNum2.blur(function () {
$(this).unbind("keydown.keydown_gsgg_rsyw_2");
});

_EsdDynamicTransformationScript.esd2TagNum2Content1.focus(function () {
$(this).bind("keydown.keydown_gsgg_rsyw_s2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum2.focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esd2TagNum2Content1.blur(function () {
$(this).unbind("keydown.keydown_gsgg_rsyw_s2");
});

//第三部分	办发文件/重要言论/人事信息
//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num5 = $(".slideTxtBox3:eq(1) .bd ul:eq(0) a").length-1;
_EsdDynamicTransformationScript.num6 = $(".slideTxtBox3:eq(1) .bd ul:eq(1) a").length-1;
_EsdDynamicTransformationScript.num7 = $(".slideTxtBox3:eq(1) .bd ul:eq(2) a").length-1;

//各个选项名称
_EsdDynamicTransformationScript.esd3TagNum1 = $(".slideTxtBox3:eq(1) .hd ul li:eq(0) a");
_EsdDynamicTransformationScript.esd3TagNum2 = $(".slideTxtBox3:eq(1) .hd ul li:eq(1) a");
_EsdDynamicTransformationScript.esd3TagNum3 = $(".slideTxtBox3:eq(1) .hd ul li:eq(2) a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd3TagNum1Content1 = $(".slideTxtBox3:eq(1) .bd ul:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd3TagNum2Content1 = $(".slideTxtBox3:eq(1) .bd ul:eq(1) a:eq(0)");
_EsdDynamicTransformationScript.esd3TagNum3Content1 = $(".slideTxtBox3:eq(1) .bd ul:eq(2) a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd3TagNum1ContentN = $(".slideTxtBox3:eq(1) .bd ul:eq(0) a:eq("+_EsdDynamicTransformationScript.num5+")");
_EsdDynamicTransformationScript.esd3TagNum2ContentN = $(".slideTxtBox3:eq(1) .bd ul:eq(1) a:eq("+_EsdDynamicTransformationScript.num6+")");
_EsdDynamicTransformationScript.esd3TagNum3ContentN = $(".slideTxtBox3:eq(1) .bd ul:eq(2) a:eq("+_EsdDynamicTransformationScript.num7+")");

//第1个tab 办发文件
_EsdDynamicTransformationScript.esd3TagNum1.focus(function (e) {

e = $(this).mouseover();
$(this).bind("keydown.keydown_bfwj_zyyl_rsxx_1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum1Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd3TagNum1.blur(function () {
$(this).unbind("keydown.keydown_bfwj_zyyl_rsxx_1");
});

_EsdDynamicTransformationScript.esd3TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown_bfwj_zyyl_rsxx_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum1.focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esd3TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown_bfwj_zyyl_rsxx_s1");
});

_EsdDynamicTransformationScript.esd3TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown_bfwj_zyyl_rsxx_e1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd3TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown_bfwj_zyyl_rsxx_e1");
});

//第2个tab 重要言论
_EsdDynamicTransformationScript.esd3TagNum2.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_bfwj_zyyl_rsxx_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd3TagNum1.mouseover();
_EsdDynamicTransformationScript.esd3TagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum2Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd3TagNum2.blur(function () {
$(this).unbind("keydown.keydown_bfwj_zyyl_rsxx_2");
});

_EsdDynamicTransformationScript.esd3TagNum2Content1.focus(function () {
$(this).bind("keydown.keydown_bfwj_zyyl_rsxx_s2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum2.focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esd3TagNum2Content1.blur(function () {
$(this).unbind("keydown.keydown_bfwj_zyyl_rsxx_s2");
});

_EsdDynamicTransformationScript.esd3TagNum2ContentN.focus(function () {
$(this).bind("keydown.keydown_bfwj_zyyl_rsxx_e2", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum3.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd3TagNum2ContentN.blur(function () {
$(this).unbind("keydown.keydown_bfwj_zyyl_rsxx_e2");
});


//第3个tab 人事信息
_EsdDynamicTransformationScript.esd3TagNum3.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_bfwj_zyyl_rsxx_3", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd3TagNum2.mouseover();
_EsdDynamicTransformationScript.esd3TagNum2ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum3Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd3TagNum3.blur(function () {
$(this).unbind("keydown.keydown_bfwj_zyyl_rsxx_3");
});

_EsdDynamicTransformationScript.esd3TagNum3Content1.focus(function () {
$(this).bind("keydown.keydown_bfwj_zyyl_rsxx_s3", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum3.focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esd3TagNum3Content1.blur(function () {
$(this).unbind("keydown.keydown_bfwj_zyyl_rsxx_s3");
});

//第四部分	法律法规/规章规范性文件

//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num8 = $(".slideTxtBox3:eq(2) .bd ul:eq(0) a").length-1;
_EsdDynamicTransformationScript.num9 = $(".slideTxtBox3:eq(2) .bd ul:eq(1) a").length-1;

//各个选项名称
_EsdDynamicTransformationScript.esd4TagNum1 = $(".slideTxtBox3:eq(2) .hd ul li:eq(0) a");
_EsdDynamicTransformationScript.esd4TagNum2 = $(".slideTxtBox3:eq(2) .hd ul li:eq(1) a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd4TagNum1Content1 = $(".slideTxtBox3:eq(2) .bd ul:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd4TagNum2Content1 = $(".slideTxtBox3:eq(2) .bd ul:eq(1) a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd4TagNum1ContentN = $(".slideTxtBox3:eq(2) .bd ul:eq(0) a:eq("+_EsdDynamicTransformationScript.num8+")");
_EsdDynamicTransformationScript.esd4TagNum2ContentN = $(".slideTxtBox3:eq(2) .bd ul:eq(1) a:eq("+_EsdDynamicTransformationScript.num9+")");

//第1个tab 规章
_EsdDynamicTransformationScript.esd4TagNum1.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_flfg_gzwj_1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum1Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd4TagNum1.blur(function () {
$(this).unbind("keydown.keydown_flfg_gzwj_1");
});

_EsdDynamicTransformationScript.esd4TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown_flfg_gzwj_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum1.focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esd4TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown_flfg_gzwj_s1");
});

_EsdDynamicTransformationScript.esd4TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown_flfg_gzwj_e1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd4TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown_flfg_gzwj_e1");
});

//第2个tab 规范性文件
_EsdDynamicTransformationScript.esd4TagNum2.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_flfg_gzwj_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd4TagNum1.mouseover();
_EsdDynamicTransformationScript.esd4TagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum2Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd4TagNum2.blur(function () {
$(this).unbind("keydown.keydown_flfg_gzwj_2");
});

_EsdDynamicTransformationScript.esd4TagNum2Content1.focus(function () {
$(this).bind("keydown.keydown_flfg_gzwj_s2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum2.focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esd4TagNum2Content1.blur(function () {
$(this).unbind("keydown.keydown_flfg_gzwj_s2");
});

// 第五部分 重要信息转载的：国务院信息/省政府信息
//将iframe所包含的a链接数 第一个a元素 最后一个a元素赋值给第一个参数的js对象
_EsdDynamicTransformationScript.getIframeInfos = function(jsObj,iframeObj){
if(iframeObj != undefined){
jsObj.aLink_num = iframeObj.contentWindow.document.getElementsByTagName("a").length;
jsObj.first_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[0];
jsObj.last_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[jsObj.aLink_num-1];
jsObj.self = iframeObj;
}
};

//声明iframe操作对象
_EsdDynamicTransformationScript.iframe1 = {};
_EsdDynamicTransformationScript.iframe2 = {};

_EsdDynamicTransformationScript.iframeElement1 = document.getElementsByTagName("iframe")[0];   // 需要修改 这里的iframe获取
_EsdDynamicTransformationScript.iframeElement2 = document.getElementsByTagName("iframe")[1];   // 需要修改 这里的iframe获取

//选项卡标签 jquery对象
_EsdDynamicTransformationScript.iframeTab1 = $(".slideTxtBox:eq(4) .hd ul a:eq(0)");  // 需要修改 这里的tab获取
_EsdDynamicTransformationScript.iframeTab2 = $(".slideTxtBox:eq(4) .hd ul a:eq(1)");  // 需要修改 这里的tab获取

// 判断iframe是否有效
if((_EsdDynamicTransformationScript.iframeElement1!=undefined) && (_EsdDynamicTransformationScript.iframeElement2!=undefined)){

// 当iframe都加载完毕后执行代码 使用setInterval
_EsdDynamicTransformationScript.iframeInterval = setInterval(function(){

if((_EsdDynamicTransformationScript.iframeElement1.contentWindow.document.getElementsByTagName("a")[0]!=undefined)
&&_EsdDynamicTransformationScript.iframeElement2.contentWindow.document.getElementsByTagName("a")[0]!=undefined ){
clearInterval(_EsdDynamicTransformationScript.iframeInterval);

//通过方法赋值
_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe1,_EsdDynamicTransformationScript.iframeElement1);
_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe2,_EsdDynamicTransformationScript.iframeElement2);

//第一个标签 切换
_EsdDynamicTransformationScript.iframeTab1.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.iframeKeydown_1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
} else if (e.keyCode == 9) {
$(_EsdDynamicTransformationScript.iframe1.first_aLink).focus();
return false;
}
});
});
_EsdDynamicTransformationScript.iframeTab1.blur(function () {
$(this).unbind("keydown.iframeKeydown_1");
});

//第一个标签的第一个链接
$(_EsdDynamicTransformationScript.iframe1.first_aLink).focus(function () {
$(this).bind("keydown.iframeKeydown_first1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab1.focus();
return false;
} else if (e.keyCode == 9) {
}
});
});
$(_EsdDynamicTransformationScript.iframe1.first_aLink).blur(function () {
$(this).unbind("keydown.iframeKeydown_first1");
});

//第一个标签的最后一个链接
$(_EsdDynamicTransformationScript.iframe1.last_aLink).focus(function () {
$(this).bind("keydown.iframeKeydown_last1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab2.focus();
return false;
}
});
});
$(_EsdDynamicTransformationScript.iframe1.last_aLink).blur(function () {
$(this).unbind("keydown.iframeKeydown_last1");
});


//第二个标签切换
_EsdDynamicTransformationScript.iframeTab2.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.iframeKeydown_2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab1.mouseover();
$(_EsdDynamicTransformationScript.iframe1.last_aLink).focus();
return false;
} else if (e.keyCode == 9) {
$(_EsdDynamicTransformationScript.iframe2.first_aLink).focus();
return false;
}
});

});
_EsdDynamicTransformationScript.iframeTab2.blur(function () {
$(this).unbind("keydown.iframeKeydown_2");
});
}

}, 500);

}



//zxd 20200203
$(function(){
$(".inp_dzxx").attr("tabindex","")
$(".btn_dzxx1").attr("tabindex","")
})
}
// ***************	网站首页 end	***************	//
/**
* 二级页
*/

//-------------------------二级页----------------------------------
if(location.href=="http://jlrf.jl.gov.cn/hdjl/ldxx/" || location.href=="http://jlrf.jl.gov.cn/hdjl/jbts/"){
_EsdDynamicTransformationScript.iframeInputInterval = setInterval(function(){
if(document.getElementsByTagName("iframe")[0].contentWindow.document.getElementsByTagName("input")[0]!=undefined){
clearInterval(_EsdDynamicTransformationScript.iframeInputInterval);

var inputIframe = document.getElementsByTagName("iframe")[0].contentWindow.document;
$(inputIframe).find("#frmData input:eq(0)").attr({placeholder:"姓名",title:"姓名"});
$(inputIframe).find("#frmData input:eq(1)").attr({placeholder:"性别",title:"性别"});
$(inputIframe).find("#frmData input:eq(2)").attr({placeholder:"联系地址或单位",title:"联系地址或单位"});
$(inputIframe).find("#frmData input:eq(3)").attr({placeholder: "联系电话",title:"联系电话"});
$(inputIframe).find("#frmData input:eq(4)").attr({placeholder: "E-mail",title:"E-mail"});
$(inputIframe).find("#frmData input:eq(5)").attr({placeholder: "标题",title:"标题"});
$(inputIframe).find("#frmData textarea:eq(0)").attr({placeholder:"信件内容",title:"信件内容"});

$(inputIframe).find("#SubmitButton").attr({title:"提交"});
$(inputIframe).find("#ResetButton").attr({title:"重置"});

}
}, 500);

}


if(location.href=="http://jlrf.jl.gov.cn/hdjl/wsdy/"){
_EsdDynamicTransformationScript.iframeInputInterval = setInterval(function(){
if(document.getElementsByTagName("iframe")[0].contentWindow.document.getElementsByTagName("input")[0]!=undefined){
clearInterval(_EsdDynamicTransformationScript.iframeInputInterval);

var inputIframe = document.getElementsByTagName("iframe")[0].contentWindow.document;
$(inputIframe).find("#frmData input:eq(0)").attr({placeholder:"昵称",title:"昵称"});
$(inputIframe).find("#frmData input:eq(1)").attr({placeholder:"联系地址",title:"联系地址"});
$(inputIframe).find("#frmData input:eq(2)").attr({placeholder: "联系电话",title:"联系电话"});
$(inputIframe).find("#frmData input:eq(3)").attr({placeholder: "E-mail",title:"E-mail"});
$(inputIframe).find("#frmData input:eq(4)").attr({placeholder: "标题",title:"标题"});
$(inputIframe).find("#frmData textarea:eq(0)").attr({placeholder:"咨询内容",title:"咨询内容"});

$(inputIframe).find("#SubmitButton").attr({title:"提交"});
$(inputIframe).find("#ResetButton").attr({title:"重置"});

}
}, 500);

}


/**
* 共通底部处理
*/
/**
* 页面区域跳转 选择器定义js
*/


//有面包屑导航的，非首页
if( $(".CurrChnlCls").length > 0 ){

_EsdDynamicTransformationScript.navBlock.selector.main=".sub_contents";
_EsdDynamicTransformationScript.navBlock.selector.left=".index_main";
_EsdDynamicTransformationScript.navBlock.selector.right=".index_main";
_EsdDynamicTransformationScript.navBlock.selector.content=".index_main";

$(".position").addClass("navBlock");
$(".submain").addClass("navBlock");
$(".sub_contents").addClass("navBlock");

_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个
}




if(_EsdDynamicTransformationScript.isSiteIndexPage){

// 提供给区域跳转用的选择器，只有main,left, right和content, 其余top, footer因为是全站通用的，所以在底部已经定义了.
_EsdDynamicTransformationScript.navBlock.selector.main=".index_main";
_EsdDynamicTransformationScript.navBlock.selector.left=".index_main .pics";
_EsdDynamicTransformationScript.navBlock.selector.right=".index_main .slideTxtBox";
_EsdDynamicTransformationScript.navBlock.selector.content=".index_main";

$(".index_main>div").addClass("navBlock");

_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个

}





/**
* 区域导航、调试开关
*/

$(document).bind("keydown.keydown_9001", function(e) {
if (e.shiftKey && e.keyCode == 20) {
$("*").focus(function() {
$(this).css({
"outline" : "2px dashed red"
});
});
$("*").blur(function() {
$(this).css({
"outline" : "0px black"
});
});
}
});

_EsdDynamicTransformationScript.navBlock.debug = true; // 是否是调试模式，调试模式有红边线，非调试模式关闭红边框
_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; // 激活的采用class因为会激活多个
// 快捷键定义区
//_EsdDynamicTransformationScript.navBlock.key = {};

//_EsdDynamicTransformationScript.navBlock.key.top = "alt+1"; // (top)
//_EsdDynamicTransformationScript.navBlock.key.nav = "alt+2"; // (nav)
//_EsdDynamicTransformationScript.navBlock.key.main = "alt+3"; // (main)
//_EsdDynamicTransformationScript.navBlock.key.content = "alt+4"; // (content)
//_EsdDynamicTransformationScript.navBlock.key.left = "alt+5"; // (left)
//_EsdDynamicTransformationScript.navBlock.key.right = "alt+6"; // (right)
//_EsdDynamicTransformationScript.navBlock.key.footer = "alt+7"; // (footer)
//_EsdDynamicTransformationScript.navBlock.key.down = "alt+8"; // (down)
//_EsdDynamicTransformationScript.navBlock.key.up = "alt+9"; // (up);

// 以下变量主要用于区块跳转
_EsdDynamicTransformationScript.navBlock.sIndex = -1; // 当前栏目下标
_EsdDynamicTransformationScript.navBlock.maxIndex = -1; // 保存目前所有class="navBlock"的区域块总数量，栏目总量下标。
_EsdDynamicTransformationScript.navBlock.minIndex = 0; // 栏目数量起始下标

// 主要代码区域

// 导航跳转
_EsdDynamicTransformationScript.navBlock.keyShowSelect = function(i) {
$(_EsdDynamicTransformationScript.navBlock.selector.activate).each(function(index, el) {
if (i == index) {
_EsdDynamicTransformationScript.navBlock.debugView(el);
$(el).find("a").each(function(i, e) {
if (i == 0) {
$(e).focus();
}
});

}
});
}

// 获取所有class=navBlock的区域的总数量，初始化轮训所有需要跳转的块
$(_EsdDynamicTransformationScript.navBlock.selector.activate).each(function(index, ehx) {
_EsdDynamicTransformationScript.navBlock.maxIndex++;
});



// 快捷键功能区域
// 跳转到头部alt+1(49)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 49) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.top);
}

});
// 跳转到导航alt+2(50)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 50) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.nav);
}

});
// 跳转到主要区域alt+3(51)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 51) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.main);
}
});

// 跳转到正文区域alt+4(52)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 52) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.content);
}
});

// 跳转到左区域alt+5(53)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 53) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.left);
}
});

// 跳转到右区域alt+6(54)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 54) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.right);
}
});
// 跳转到底部alt+7(55)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 55) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.footer);
}
});
//前进alt+8(56)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 56) {
if (_EsdDynamicTransformationScript.navBlock.sIndex < _EsdDynamicTransformationScript.navBlock.maxIndex) {
_EsdDynamicTransformationScript.navBlock.sIndex++;
_EsdDynamicTransformationScript.navBlock.keyShowSelect(_EsdDynamicTransformationScript.navBlock.sIndex);
}
}
});

// 后退alt+9(57)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 57) {
if (_EsdDynamicTransformationScript.navBlock.sIndex > _EsdDynamicTransformationScript.navBlock.minIndex) {
_EsdDynamicTransformationScript.navBlock.sIndex--;
_EsdDynamicTransformationScript.navBlock.keyShowSelect(_EsdDynamicTransformationScript.navBlock.sIndex);
}
}
});
// 特定区域跳转
_EsdDynamicTransformationScript.navBlock.keySelectScroll = function(id) {
if ($(id).length > 0) {
_EsdDynamicTransformationScript.navBlock.appendIns(id,true);//插入ins
_EsdDynamicTransformationScript.navBlock.debugView(id);
$(id).find("a").each(function(index) {
if (index == 0) {
$(this).focus();
}
});
_EsdDynamicTransformationScript.navBlock.appendIns(id,false);//清楚ins
} else {
}

}
//为了解决漂浮高等于0的情况下区域显示是一条线
_EsdDynamicTransformationScript.navBlock.appendIns=function(id,b){
if(b==true){
$(id).append("<ins id='esdNavBlockIns' style='clear: both;display: block;'></ins>")
}else{
$("#esdNavBlockIns").remove();
}
}

if (_EsdDynamicTransformationScript.navBlock.debug == true) {
// 如果开启调试模式，添加调试绘制矩形边线
$("body").append("<div id='show_top' class='lineshow'></div>");
$("body").append("<div id='show_bottom' class='lineshow'></div>");
$("body").append("<div id='show_left' class='lineshow'></div>");
$("body").append("<div id='show_right' class='lineshow'></div>");
$(".lineshow").css({
"display" : "none"
});
}
// 开启调试模式后会显示红边
_EsdDynamicTransformationScript.navBlock.debugView = function(e) {
if (_EsdDynamicTransformationScript.navBlock.debug == true) {
var x = $(e).offset();
//var w = parseInt($(e).css("width"));
var w = $(e).outerWidth();//返回元素的宽度（包含 padding 和 border）
//var h = parseInt($(e).css("height"));
var h = $(e).outerHeight();//返回元素的高度（包含 padding 和 border）
$("#show_top").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top,
"left" : x.left,
"width" : w,
"height" : "0px"
});
$("#show_bottom").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top + h,
"left" : x.left,
"width" : w,
"height" : "0px"
});
$("#show_left").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top,
"left" : x.left,
"width" : "0px",
"height" : h
});
$("#show_right").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top,
"left" : x.left + w,
"width" : "0px",
"height" : h
});
$("html,body").animate({
scrollTop : $("#show_top").offset().top
}, 200);
$(".lineshow").css({
"display" : "block"
});
}
}
};
/**
* 主入口方法
*/

if (window.jQuery == undefined) {
var wzaInitInterval = setInterval(function(){
if(document.body!=null){
clearInterval(wzaInitInterval);
//			var originalWindowOnload = null;
//			if(window.onload!=null){
//				originalWindowOnload = window.onload;
//			}
document.body.onload = function(){
//				originalWindowOnload();
var esdJquery = document.createElement("script");
esdJquery.setAttribute("type", "text/javascript");
esdJquery.setAttribute("src", window.location.protocol + "//" + window.location.href.split("/")[2] + "/wza/bwscript/jquery-1.12.4.min.js");
esdJquery.setAttribute("charset", "utf-8");
esdJquery.setAttribute("id", "ESDWebAppInnerIframe");
document.body.appendChild(esdJquery);
var jqueryLoadInterval = setInterval(function () {
if (window.jQuery != undefined) {
clearInterval(jqueryLoadInterval);
setTimeout( _EsdDynamicTransformationFunction(jQuery) , 1000 );
//						_EsdDynamicTransformationFunction(jQuery)
}
}, 500);
};
}
}, 10);
} else {
jQuery(function(){
setTimeout( _EsdDynamicTransformationFunction(jQuery) , 1000 );
//		_EsdDynamicTransformationFunction(jQuery)
})

}
